#set(seoTitle="我的文章评论")
#@layout()
#define main()
<!-- 内容区域 -->
<div class="aw-container-wrap">
	<div class="container">
		<div class="row">
			<div class="aw-content-wrap clearfix">
				<div class="col-sm-12 col-md-9 aw-main-content">
					<div class="aw-mod aw-inbox">
						<div class="mod-head common-head">
							<h2>我的文章评论<span class="badge">#(myArticleReply.totalRow)</span></h2>
						</div>
						<div class="mod-body aw-feed-list">
							<table class="table table-striped">
								<tr>
									<th>文章标题</th>
									<th>评论用户</th>
									<th>评论内容</th>
									<th>评论时间</th>
									<th>操作</th>
								</tr>
								#for(reply : myArticleReply.getList())
								<tr>
									<td><a href="/detail/#(reply.aid)">#(reply.title)</a></td>
									<td><a href="/user/detail/#(reply.uid)">#(reply.nickName)</a></td>
									<td>#(reply.content)</td>
									<td>#date(reply.addtime, "yyyy-MM-dd HH:mm ")</td>
									<td><a title="删除" href="javascript:;" onclick="confirmLayer('删除后无法恢复，确定要删除？', '/my/article/replyDelete?rid=#(reply.rid)&aid=#(reply.aid)');"><i class="icon icon-delete"></i></a></td>
								</tr>
								#end
							</table>
						</div>
						<!--分页 -->
						<div class="page-control">
							#@paginate(myArticleReply.pageNumber, myArticleReply.totalPage, "/my/article/replyList/" + loginAccount.uid + "?p=")
						</div>
					</div>
				</div>
				<!-- 侧边栏 -->
				#include("/_view/my/common/my_menu.html")
			</div>
		</div>
	</div>
</div>
<!-- 内容区域end -->
#end
#define js()
<script type="text/javascript" src="/static/layer/layer/layer.js"></script>
<script type="text/javascript">
	function confirmLayer(msg, operationUrl) {
		layer.confirm(msg, {
			icon: 0
			, title:''        // 设置为空串时，title消失，并自动切换关闭按钮样式，比较好的体验
			, shade: 0.4
			, offset: "139px"
		}, function(index) {                  // 只有点确定后才会回调该方法
			location.href = operationUrl;
			layer.close(index);                 // 需要调用 layer.close(index) 才能关闭对话框
		});
	}
</script>
#end